<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<div class="departmentlistbox">
<table style="display:none;"><tr><td>
	<%HtmlBlock method="processList"; %>
	<%Conditional on = "CurrentBizObj.product.metaType==-Department"; %>
		</td></tr></table>
		<table><tr><td colspan="2">
			<div class="title"><asp:Label ID="product_title" runat="server" /></div>
			<div class="summary"><swf:ReadOnlyText ID="product_summary" runat="server" /></div>
		</td></tr><tr><td>
			<div class="mediaArea">
				<asp:Image ID="product_primaryPicture_name" runat="server" ImageUrl="~/$product.mediaCacheName$/$imageRes$/$product.primaryPicture.name$" />
			</div>
			<div class="body">
				<asp:Label ID="product_body" runat="server" />
			</div>
		</td><td width="100%" valign="top">				    
	<%EndConditional; %>

	<%Conditional on = "CurrentBizObj.product.metaType!=-Department"; %>
	<div class="productlistbox">
		<span class="title"><asp:Label ID="product_title" runat="server" /></span>
		<span class="summary"><swf:ReadOnlyText ID="product_summary" runat="server" /></span>
		<div class="priceArea"><asp:Label id="_priceLbl" runat="server">Price:</asp:Label> <swf:ReadOnlyText id="product_sellPriceFormated" runat="server" />&nbsp;<swf:ReadOnlyText id="product_sellPriceDescription" runat="server" /></div>
	</div>
	<%EndConditional; %>
	<%EndHtmlBlock; %>
</td></tr></table>
</div>

